<?php

namespace App\Admin\Tools\Task;

use Encore\Admin\Grid\Tools\AbstractTool;
use Illuminate\Contracts\View\View;

class TaskFollowUpTool extends AbstractTool
{
    private int $id;
    private string|null $mobile;
    private string|null $wechat;
    private mixed $extends;
    private string|null $remark;

    public function __construct(int $id, string|null $mobile, string|null $wechat, mixed $extends, string|null $remark)
    {
        $this->id = $id;
        $this->mobile = $mobile;
        $this->wechat = $wechat;
        $this->extends = $extends;
        $this->remark = $remark;
    }

    /**
     * @inheritDoc
     */
    public function render(): View
    {
        return view('task.task_follow_up', [
            'id' => $this->id,
            'mobile' => $this->mobile,
            'wechat' => $this->wechat,
            'extends' => $this->extends,
            'remark' => $this->remark,
        ]);
    }
}
